package com.weilele.leisure.time.ui.module.video_detail

import com.weilele.leisure.time.bean.PageByIdBean
import com.weilele.leisure.time.bean.VideoDetailBean
import com.weilele.leisure.time.bean.VideoListBean
import com.weilele.leisure.time.bean.db.HistoryVideoBean

fun HistoryVideoBean.copyData(video: VideoListBean.RowsDTO) {
    picUrl = video.pic
    title = video.title
    videoId = video.id
}

fun HistoryVideoBean.copyData(video: VideoDetailBean) {
    picUrl = video.pic
    title = video.title
    videoId = video.id
}

fun VideoListBean.RowsDTO.copyData(video: HistoryVideoBean) {
    pic = video.picUrl
    title = video.title
    id = video.videoId
}

fun VideoListBean.RowsDTO.copyData(video: PageByIdBean.ItemsDTO.CmsImgDTO) {
    pic = video.picUrl
    title = video.title
    id = video.id
}